﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example01.aspx.cs" Inherits="Chapter27.Example01" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 27-1 获取 Window 对象</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
</head>
<body id="bod">
    <table>
        <tr>
            <th>outerWidth:</th>
            <td id="outerWidth"></td>
        </tr>
        <tr>
            <th>outerHeight:</th>
            <td id="outerHeight"></td>
        </tr>
    </table>
    <script>
        document.getElementById("outerWidth").innerHTML = window.outerWidth;
        document.getElementById("outerHeight").innerHTML = document.defaultView.outerHeight;
    </script>
</body>
</html>
